// by Xeno
private ["_vehicle"];
#include "x_setup.sqf"
#include "x_macros.sqf"

#define __Poss _poss = x_sm_pos select 0;
#define __PossAndOther _poss = x_sm_pos select 0;_pos_other = x_sm_pos select 1;

x_sm_pos = [[4758.3027,6562.0137,0], [3785.562,2539.0571,0],2]; // index: 21,   Convoy Gvozdno to Pusta, start and end position
x_sm_type = "convoy"; // "convoy"

#ifdef __SMMISSIONS_MARKER__
if (true) exitWith {};
#endif

if (X_Client) then {
	d_current_mission_text = "An enemy convoy is on route from Engor to Kinsells. Find it and destroy it.";
	d_current_mission_resolved_text = "Good job. The convoy is down.";
};

if (isServer) then {
	__PossAndOther
	[_poss, _pos_other, x_sm_pos select 2] execVM "x_missions\common\x_sideconvoy.sqf";
};

if (true) exitWith {};